<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Modifying the GaussDB (DWS) Configuration File">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="DWS_00083">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Modifying the GaussDB (DWS) Configuration File</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="DWS_00083"></a><a name="DWS_00083"></a>
  <h1 class="topictitle1">Modifying the GaussDB (DWS) Configuration File</h1>
  <div>
   <p>If ProtectAgent is installed on a GaussDB (DWS) node, you need to modify the GaussDB (DWS) configuration file. Otherwise, the backup will fail.</p>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <ol>
     <li><span>Use PuTTY to log in to the GaussDB (DWS) cluster node.</span></li>
     <li><span>Run the following command to access the configuration file directory.</span><p></p><pre class="screen">cd /opt/DataBackup/ProtectClient/Plugins/GeneralDBPlugin/bin/
applications/dws/</pre> <p></p></li>
     <li><span>Run the <strong>vi dws.conf</strong> command to edit the configuration file. <a href="#DWS_00083__en-us_topic_0000001346641964_table196232217593">Table 1</a> describes the parameters.</span><p></p>
      <div class="tablenoborder">
       <a name="DWS_00083__en-us_topic_0000001346641964_table196232217593"></a><a name="en-us_topic_0000001346641964_table196232217593"></a>
       <table cellpadding="4" cellspacing="0" summary="" id="DWS_00083__en-us_topic_0000001346641964_table196232217593" frame="border" border="1" rules="all">
        <caption>
         <b>Table 1 </b>GaussDB (DWS) configuration file parameters
        </caption>
        <colgroup>
         <col style="width:25.03%">
         <col style="width:74.97%">
        </colgroup>
        <thead align="left">
         <tr>
          <th align="left" class="cellrowborder" valign="top" width="25.03%" id="mcps1.3.2.2.3.2.1.2.3.1.1"><p>Parameter</p></th>
          <th align="left" class="cellrowborder" valign="top" width="74.97%" id="mcps1.3.2.2.3.2.1.2.3.1.2"><p>Description</p></th>
         </tr>
        </thead>
        <tbody>
         <tr>
          <td class="cellrowborder" valign="top" width="25.03%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p>deployType</p></td>
          <td class="cellrowborder" valign="top" width="74.97%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p>GaussDB (DWS) deployment mode.</p>
           <ul>
            <li><strong>0</strong>: The GaussDB (DWS) cluster is deployed on the host machine of the server.</li>
            <li><strong>1</strong>: The GaussDB (DWS) cluster is deployed in the sandbox.</li>
           </ul></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.03%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p>loginSandboxIp</p></td>
          <td class="cellrowborder" valign="top" width="74.97%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p>IP address used for GaussDB (DWS) deployment in the sandbox (applicable only to scenarios where GaussDB (DWS) is deployed in the sandbox).</p>
           <div class="note">
            <span class="notetitle"> NOTE: </span>
            <div class="notebody">
             <p>Run the <strong>hostname -i</strong> command on the CN where the agent is deployed to query the IP address.</p>
            </div>
           </div></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.03%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p>sandboxPath</p></td>
          <td class="cellrowborder" valign="top" width="74.97%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p>Path for storing the sandbox on the host (applicable only to scenarios where GaussDB (DWS) is deployed in the sandbox).</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" width="25.03%" headers="mcps1.3.2.2.3.2.1.2.3.1.1 "><p>authmethod</p></td>
          <td class="cellrowborder" valign="top" width="74.97%" headers="mcps1.3.2.2.3.2.1.2.3.1.2 "><p>Client authentication policy.</p>
           <ul>
            <li><strong>trust</strong>: Password is not verified.</li>
            <li><strong>reject</strong>: Access is denied.</li>
            <li><strong>md5</strong>/<strong>sha256</strong>/<strong>cert</strong>: Client certificate authentication is performed.</li>
            <li><strong>gss</strong>: Kerberos authentication is performed.</li>
           </ul></td>
         </tr>
        </tbody>
       </table>
      </div> <p></p></li>
    </ol>
    <p></p>
   </div>
  </div>
 </body>
</html>